package com.phpxiu.app.model;

import com.phpxiu.app.model.list.HomeFollow;

import java.io.Serializable;

/**
 *回放信息
 */
public class LiveHistoryContent implements Serializable {
    private String hostId;//主播id 分享用
    private String liveNo;//直播编号
    private String nick;//主播昵称 分享用
    private String avatar;//主播头像
    private String liveTitle;//直播标题，分享备用
    private String watchCount;//观看次数
    private String tickets;//直播累计收到的票数
    private String videoUrl;//视频资源

    public LiveHistoryContent() {

    }

    public LiveHistoryContent(HomeFollow follow) {
        try {
            hostId=follow.getHost().getUid();
            liveNo=hostId;
            nick=follow.getHost().getNickname();
            avatar=follow.getHost().getAvatar();
            liveTitle=follow.getTitle();
            watchCount=follow.getViewed();
            tickets=follow.getHost().getTotal_income();
            videoUrl=follow.getUrl();
        }catch (NullPointerException e){
            e.printStackTrace();
        }
    }

    public String getHostId() {
        return hostId;
    }

    public void setHostId(String hostId) {
        this.hostId = hostId;
    }

    public String getLiveNo() {
        return liveNo;
    }

    public void setLiveNo(String liveNo) {
        this.liveNo = liveNo;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getLiveTitle() {
        return liveTitle;
    }

    public void setLiveTitle(String liveTitle) {
        this.liveTitle = liveTitle;
    }

    public String getWatchCount() {
        return watchCount;
    }

    public void setWatchCount(String watchCount) {
        this.watchCount = watchCount;
    }

    public String getTickets() {
        return tickets;
    }

    public void setTickets(String tickets) {
        this.tickets = tickets;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }
}
